<div id="body_container">
    <div class="detail_container">
      <div class="detail_box">
        <div class="detail_top_curve">
          <div class="detail_detail_content">
            <div class="welcomezone">
              <div style="margin-bottom:10px;">
                <div class="blueboldheading">
				<h1>Listing users</h1>
                </div>



<table>
  <tr>
    <th>Surname</th>
	<th>Firstname</th> 
    <th>Email  </th> 
    <th>Online </th> 
	<th>Admin </th>      
    <th></th>
    <th></th>
    <th></th>
	<th></th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.name %></td>
	<td><%= user.firstname %></td>
    <td><%= user.email %></td>
	<td><%= user.online %></td>
	<td><%= user.admin %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to '| Edit |', edit_user_path(user) %></td>
    <td><%= link_to "Delete", user, :method => :delete, :confirm => "Are you sure?",
                                :title => "Delete #{user.name}" %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New User', "/register" %>
